package com.bluefish.bltuan.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bluefish.bltuan.dao.SubscriberDao;
import com.bluefish.bltuan.module.mail.Subscriber;

@Repository
public class SubscriberDaoImpl extends AbstractDaoImpl<Subscriber, Integer>
	implements SubscriberDao{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2871742897909911839L;

	private static final String EMAIL = "email";

	public List<Subscriber> findByEmail(String email) {
		return this.listByProperty(EMAIL, email);
	}
}
